﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Travel.Data;
using Travel.Data.Dtos;
using Travel.Data.Inputs;

namespace Travel.Service.User
{
    public interface IMenuModuleService
    {
        /// <summary>
        /// 添加或修改菜单模块
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<Results<int>> UpdateOrAdd(MenuModuleInput input);
        /// <summary>
        /// 菜单模块查询
        /// </summary>
        /// <returns></returns>
        Task<Results<PageDto<MenuModuleDto>>> MenuButtonQuery(MenuModuleQueryInput input);
        /// <summary>
        /// 根据菜单模块ID获取一条记录
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<Results<MenuModuleDto>> GetMenuModuleById(long id);

        /// <summary>
        /// 批量删除
        /// </summary>
        /// <param name="loginUserId"></param>
        /// <param name="idList"></param>
        /// <returns></returns>
        Task<Results<int>> RemoveMenuModule(params long[] idList);
    }
}
